package com.camtc.camcenter.service.impl;

import com.camtc.camcenter.base.service.impl.BaseServiceImpl;
import com.camtc.camcenter.dao.repository.CloudRoleRepository;
import com.camtc.camcenter.dao.entity.CloudRole;
import com.camtc.camcenter.service.CloudRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 云桌面角色实现
 *
 * @author
 * @date
 */

@Service
@Transactional(rollbackFor = Exception.class)
public class CloudRoleServiceImpl extends BaseServiceImpl<CloudRole> implements CloudRoleService {

    private CloudRoleRepository roleRepository;

    @Autowired
    public void setRoleRepository(CloudRoleRepository roleRepository) {
        this.roleRepository = roleRepository;
    }

    @Override
    public void initJpaRepository() {
        this.jpaRepository = roleRepository;
    }
}
